package xyz.bali16.module.team.model;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Data
@ApiModel("添加队伍参数")
public class TeamAddParam {

    @ApiModelProperty(name = "name", value = "队伍名字", required = true)
    @NotNull(message = "队伍名字不能为空")
    private String name;
    @ApiModelProperty(name = "description", value = "队伍描述", required = false)
    private String description;
    @ApiModelProperty(name = "maxNum", value = "队伍最大人数", required = true)
    @NotEmpty(message = "最大人数不能为空")
    private Integer maxNum;
    @ApiModelProperty(name = "userId", value = "队长id", required = true)
    @NotEmpty(message = "队长id不能为空")
    String userId;
    @ApiModelProperty(name = "expireTime", value = "过期时间", required = true)
    private String expireTime;
    /**
     * 0：公开，1：私有，2：加密
     */
    @ApiModelProperty(name = "status", value = "队伍状态", required = true)
    @NotEmpty(message = "队伍状态不能为空")
    Integer status;

    @ApiModelProperty(name = "password", value = "队伍密码", required = false)
    private String password;


}
